class Restaurant:
	""" 餐馆对象 """
	def __init__(self, name ,type):
		self.name = name
		self.type = type
		self.number_served = 0

	def dscribe(self):
		print(f"餐馆名称：{self.name}, 餐馆类型: {self.type}")

	def open(self):
		print(f"{self.name} 已经开业")

	def set_number_served(self, number_served):
		if number_served > self.number_served:
			self.number_served = number_served
		else:
			print("服务人数不能回退")

	def increment_number_served(self, increment_number_served):
		if increment_number_served <= 0:
			print("必须输入正确的增加人数")
		else:
			self.number_served += increment_number_served
	def read_number_served(self):
		return self.number_served

restaurant = Restaurant("中华功夫", '面条')
restaurant.dscribe()
restaurant.open()
print(f"服务的人数{restaurant.read_number_served()}")
restaurant.set_number_served(100)
print(f"服务的人数{restaurant.read_number_served()}")
restaurant.set_number_served(50)
print(f"服务的人数{restaurant.read_number_served()}")
restaurant.increment_number_served(50)
print(f"服务的人数{restaurant.read_number_served()}")

r1 = Restaurant("江边城外烤鱼", "烤鱼")
r1.dscribe()
r1.open()
